package com.sykj.manage.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sykj.manage.dao.SysMenuDao;
import com.sykj.manage.service.SysDeptService;
import com.sykj.manage.service.SysMenuService;
import com.sykj.manage.model.SysDept;
import com.sykj.manage.model.SysMenu;

/**
 * 
 * @author 高志远
 *2018年9月13日下午5:27:19
 *类描述：菜单配置[sys_role业务逻辑
 */
@Service
public class SysMenuServiceImpl implements SysMenuService{
	
	@Autowired
	SysMenuDao sysMenuDao;

	@Override
	public List<SysMenu> findMenus(SysMenu sysMenu) {
		// TODO Auto-generated method stub
		return sysMenuDao.findMenus(sysMenu);
	}

	@Override
	public int delMenus(Object[] menu_id) {
		// TODO Auto-generated method stub
		return sysMenuDao.delMenus(menu_id);
	}

	@Override
	public SysMenu findMenuByID(String menu_id) {
		// TODO Auto-generated method stub
		return sysMenuDao.findMenuByID(menu_id);
	}

	@Override
	public int addMenu(SysMenu sysMenu) {
		// TODO Auto-generated method stub
		return sysMenuDao.addMenu(sysMenu);
	}

	@Override
	public int updMenu(SysMenu sysMenu) {
		// TODO Auto-generated method stub
		return sysMenuDao.updMenu(sysMenu);
	}

	

}
